<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::namespace('MapOfFood')->group(function(){
	Route::get('getBusInfo/{id}','MapOfFoodController@getBusInfo');
	Route::get('getBusInfoList/{curPage}','MapOfFoodController@getBusInfoList');
	Route::post('addBusInfo','MapOfFoodController@addBusInfo');
	Route::post('updateBusInfo/{id}','MapOfFoodController@updateBusInfo');
	Route::get('deleteBusInfo/{id}','MapOfFoodController@deleteBusInfo');
	Route::get('getBusInfoListAdmin','MapOfFoodController@getBusInfoListAdmin');
	Route::post('getNearbyBusInfoList','MapOfFoodController@getNearbyBusInfoList');

});
Route::namespace('MapOfYiqing')->group(function(){
	Route::get('feiyanIndex','MapOfYiqingController@feiyanIndex');
});